package com.hnx.admin.aurora.core.log;

import com.hnx.admin.aurora.system.domain.param.loginInfor.form.LoginInfoForm;
import com.hnx.admin.aurora.system.mapper.loginInfor.LoginInfoMapper;
import com.hnx.admin.aurora.system.service.AsyncLoginLogWriter;
import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/*
创建人： 倔强的头发
创建时间：2025/6/22
功能描述: 登录日志异步插入数据库

*/
@Service
@RequiredArgsConstructor
public class AsyncLoginLogWriterImpl implements AsyncLoginLogWriter {
    private final LoginInfoMapper loginInfoMapper;

    @Override
    @Async("loginLogExecutor")
    public void insertLogininfor(LoginInfoForm sysLogininfor) {
         loginInfoMapper.insertLogininfor(sysLogininfor);
    }
}
